<form action="/admin/plate/custom-save" id="plate-add-form" data-toggle="ajaxform" data-options="{closeCurrent:true}">
    <div class="bjui-row">
        <div class="bjui-row col-2">
            <label class="row-label">所属客户</label>
            <div class="row-input">
                <input type="hidden" name="customer_id" >
                <input type="text" name="customer_name" id="customer_name" data-toggle="findgrid" data-options="{
                    include: 'customer_id:id,customer_name',
                    dialogOptions: {title:'查找客户'},
                    gridOptions: {
                        local: 'local',
                        dataUrl: '/admin/customer/list',
                        columns: [
                            {name:'customer_name', label:'客户名称', width:100},
                        ]
                    }
                }" disabled>
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">版名称</label>
            <div class="row-input required">
                <input type="text" name="plate_name" id="plate_name" data-rule="required">
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">支数</label>
            <div class="row-input required">
                <input type="text" name="branch_number" id="branch_number" data-rule="required">
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">版分类</label>
            <div class="row-input required">
                <select name="category_id">
                    @foreach ($category as $cat)
                    <option value="{{ $cat['id'] }}">{{ $cat['title'] }}</option>
                    @endforeach
                </select>
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">版图片</label>
            <div class="row-input">
                <input type="file" data-name="img_id" data-id="img_id" data-toggle="webuploader" data-options="
                {
                    pick: {label: '点击选择图片'},
                    upname:'img_id',
                    server: 'admin/photo/upload',
                    fileNumLimit: 1,
                    formData: {_token : '{{ csrf_token() }}'},
                    required: false,
                    uploaded: '',
                    basePath: '',
                    accept: {
                        title: '图片',
                        extensions: 'jpg,png',
                        mimeTypes: '.jpg,.png'
                    }
                }">
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">版编号</label>
            <div class="row-input">
                <input type="text" name="plate_no" id="plate_no">
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">版位</label>
            <div class="row-input">
                <input type="text" name="position" id="position">
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">制版厂</label>
            <div class="row-input">
                <input type="text" name="factory" id="factory">
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">制版厂版号</label>
            <div class="row-input">
                <input type="text" name="factory_plate_no" id="factory_plate_no">
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">规格</label>
            <div class="row-input">
                <input type="text" name="spec" id="spec">
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">预警数量</label>
            <div class="row-input">
                <input type="text" name="warning_number" id="warning_number" size="">
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">预警订单数</label>
            <div class="row-input">
                <input type="text" name="warning_order_times" id="warning_order_times" size="">
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">预警时长（天）</label>
            <div class="row-input">
                <input type="text" name="warning_days" id="warning_days" size="">
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">排序</label>
            <div class="row-input">
                <input type="text" name="sort_id" id="sort_id" size="">
            </div>
        </div>
        <div class="bjui-row col-2">
            <div class="row-input">
                <label class="row-label"></label>
                <button type="submit" class="btn-default" data-icon="save">保存</button>
                <button type="button" class="btn-close" data-icon="close">取消</button>
            </div>
        </div>
    </div>
</form>
